package com.hzdl.hotel.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hzdl.hotel.bean.GuestRoom;
import com.hzdl.hotel.bean.RoomBook;
import com.hzdl.hotel.bean.RoomOrder;
import com.hzdl.hotel.mapper.RoomOrderMapper;
import com.hzdl.hotel.service.RoomOrderService;
import com.hzdl.hotel.vo.RoomBookVo;
import com.hzdl.hotel.vo.RoomOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoomOrderServiceImpl implements RoomOrderService {

    @Autowired
    private RoomOrderMapper roomOrderMapper;

    @Override
    public List<RoomOrder> findByWhere(RoomOrderVo roomOrderVo) {
        return roomOrderMapper.findByWhere(roomOrderVo);
    }

    @Override
    public RoomOrder findByhId(Integer hId) {
        return roomOrderMapper.findByhId(hId);
    }

    @Override
    public List<GuestRoom> findByType(String type) {
        return roomOrderMapper.findByType(type);
    }


}
